package net;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

import logic.GameRules;

public class GameServer extends ServerSocket{
	
	public int numberOfConnections;
	public GameRules gameRules;
	public Socket[] playerSockets;
	
	public GameServer(int ip, GameRules rules) throws IOException {
		super(ip);
		gameRules = rules;
	}
	
	public void init(int connections){
		numberOfConnections = connections;
		playerSockets = new Socket[numberOfConnections];
		for(int i = 0; i < numberOfConnections; i++){
			playerSockets[i] = new Socket();
		}
	}
	
	public boolean waitConnections(){

		return false;
	}
}

